package com.itheima.quartz;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * ClassName: MyBean
 * Description:
 * Date: 2023/03/14 AM 12:24:01
 * <p>
 * project: springboot
 * package: com.itheima.quartz
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
@Component
public class MyBean {

    @Scheduled(cron = "0/1 * * * * ?")
    public void print() {
        System.out.println(Thread.currentThread().getName() + " :spring task run...");
    }
}
